package com.daijie.demo

import io.reactivex.Observable
import retrofit2.http.*

interface Api {

    @GET("web/Account/Login")
    fun queryCookies(): Observable<String>

    @POST("web/Account/Login")
    @FormUrlEncoded
    fun login(
        @Field("Email") email: String,
        @Field("Password") password: String,
        @Field("__RequestVerificationToken") token: String
    ): Observable<String>

    @GET("web/Alipay/GetToken")
    fun getToken(): Observable<Token>

    @GET("api/api/creditstudenttimetable/")
    fun getSyllabus(
        @Query("vid") vid: Long,
        @Query("timestamp") timestamp: Long,
        @Query("app") app: String,
        @Query("nonce") nonce: String,
        @Query("token") token: String
    ): Observable<String>
}